在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)
2026 年 2 月 12 日
如果你在中国尝试使用 Claude Code,大概率会撞上 403 错误。本文覆盖三种使用场景的解决方案:
- macOS 终端 (shell) - 在终端里直接使用 claude 命令行
- VS Code 终端 - 在 VS Code 内置终端里使用 claude 命令行
(This document has heavy AI generation, but is a result of a fair bit of interactive design/research work with cgwalters, plus of course big tip to paude and other projects which already blazed this trail around network proxying)
OpenShell's current inner sandboxing — Landlock, seccomp, network namespaces, iptables, and TOFU binary verification, all running inside the sandbox container — is simultaneously too much and too little.
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
Gist: https://gist.github.com/aliou/17322b3fa9e816e2231fd4be05005398
A small Pi extension that adds --shebang, inspired by Simon Willison's TIL post Using LLM in the shebang line of a script.
When enabled, Pi treats the first input as a script path, reads that file, strips the shebang line, and sends the remaining body as the prompt.
In this new Minecraft plugin development guide, I'll show you how to make Minecraft plugins for Bukkit, Spigot and Paper.
This guide covers Minecraft plugins for 1.8.8 to 1.21.
We'll be using IntelliJ with a dedicated extension for Minecraft plugin development to make this process fast and easy.
ASCI art characters for creating diagrams